home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2001 May / SGI Freeware 2001 May - Disc 1.iso / dist / fw_teTeX.idb / usr / freeware / share / texmf / dvips / config / updmap.z / updmap
Text File  |  2001-01-10  |  5KB  |  122 lines

  1. #!/bin/sh
  2. # Thomas Esser, 1998, 1999. Public domain.
  3.  
  4. ###########################################################################
  5. # updmap: create psfonts.map, ps2pk.map and pdftex.map from smaller
  6. # "modules". To recreate the map files, just run the command:
  7. #    ./updmap
  8. ###########################################################################
  9.  
  10. ###########################################################################
  11. # Configuration section:
  12. ###########################################################################
  13.  
  14. # Add any extra modules here. See the definition of common_modules below
  15. # for an example of the correct syntax. If you just want to use the type1
  16. # version for the computer modern fonts by default in dvips (instead of
  17. # the metafont based bitmap fonts), just change the definition of
  18. # type1_default that is given below.
  19. #
  20. # An alternative to adding map files here is to edit the files
  21. #   config/dvips/config.ps
  22. #   pdftex/config/pdftex.cfg
  23. # in a local texmf tree.
  24. extra_modules="
  25.  
  26. "
  27.  
  28. ###########################################################################
  29. # Set up the  standard Laserwriter fonts:
  30. #   urw-kb:   these are included in teTeX's texmf tree
  31. #   urw-urw:  these are included in ghostscript 4.0 and later. Adjust the
  32. #             search paths for type1 and afm files in texmf.cnf if you set
  33. #             this
  34. #   adobe-kb: use this if you have the original Adobe fonts. Install the
  35. #             type1 and afm files with Berry names.
  36. ###########################################################################
  37.  
  38. lw35=urw-kb        # URW fonts (download type1 files using Berry names)
  39. # lw35=urw-urw        # URW fonts (download type1 files using URW names)
  40. # lw35=adobe-kb        # Adobe fonts (download type1 files using Berry names)
  41.  
  42. ###########################################################################
  43. # Set to true to use postscript type1 versions for fonts with existing
  44. # metafont versions.
  45. ###########################################################################
  46.  
  47. type1_default=false
  48. # type1_default=true
  49.  
  50. ###########################################################################
  51. # Add common map files here:
  52. ###########################################################################
  53. common_modules="
  54.   charter.map context.map lucidabr.map marvosym.map mathpi.map
  55.   mathpple-ext.map mt-yy.map mt-plus.map omega.map utopia.map
  56.   xypic.map $extra_modules
  57. "
  58.  
  59. ###########################################################################
  60. # End of configuration section.
  61. ###########################################################################
  62.  
  63. ###########################################################################
  64. # Type1 fonts with Metafont equivalents. When not generating resolution
  65. # independent postscript or pdf, we prefer the Metafont variants for these.
  66. ###########################################################################
  67. mf_modules="
  68.   bsr.map bsr-interpolated.map cmcyr.map cs.map hoekwater.map pl.map
  69. "
  70.  
  71. ###########################################################################
  72. # These are used by dvips:
  73. ###########################################################################
  74. lw35_modules="
  75.   *-adobe-bi.map
  76.   $common_modules
  77. "
  78.  
  79. ###########################################################################
  80. # Add CM + AMS fonst if configured:
  81. ###########################################################################
  82. if test "x$type1_default" = xtrue; then
  83.   lw35_modules="$lw35_modules $mf_modules"
  84. fi
  85.  
  86. ###########################################################################
  87. # ps2pk has no "built in" fonts and needs to download everything:
  88. ###########################################################################
  89. ps2pk_modules="
  90.   *-$lw35.map
  91. "
  92.  
  93. ###########################################################################
  94. # pdftex has the acrobat fonts (subset of the lw35 fonts) built in, but
  95. #   needs to download fonts for ExtendFont / SlantFont:
  96. ###########################################################################
  97. pdftex_modules="
  98.   $mf_modules
  99.  
  100.   *ar-ext-$lw35.map
  101.   *ar-std-adobe-bi.map
  102.   *lw35extra-$lw35.map
  103.   mtsupp-ext-$lw35.map
  104.   mtsupp-std-adobe-bi.map
  105.  
  106.   $common_modules
  107. "
  108.  
  109. # Create psfonts.map ps2pk.map and pdftex.map:
  110. for file in psfonts.map ps2pk.map pdftex.map; do
  111. cat >$file <<eof
  112. % $file: maintained by the script updmap in \$TEXMFMAIN/dvips/config.
  113. %   The preferred way to add things to this file is to put the extra lines
  114. %   into a separate file and add that filename to the updmap script. Then,
  115. %   run the updmap script to recreate this file.
  116. eof
  117. done
  118.  
  119. cat $lw35_modules   | grep -v '^%' | grep . | sort | uniq >> psfonts.map
  120. cat $ps2pk_modules  | grep -v '^%' | grep . | sort | uniq >> ps2pk.map
  121. cat $pdftex_modules | grep -v '^%' | grep . | sort | uniq >> pdftex.map
  122.